.container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 368px;

  width: 100%;
  height: 206px;
  box-sizing: border-box;

  border-radius: 3px;
  background-color: var(--color-white);
  cursor: pointer;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin: 20px;
}

.card__link {
  position: absolute;
  z-index: 2;

  width: 100%;
  height: 100%;
}

.info__text {
  height: 129px;
  max-width: 610px;
}

.info__text_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  margin: 0 0 10px 0;

  font-family: var(--font-family-PT-Sans);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 27px;
  color: #2e3640;
}

.info__text_paragraph {
  margin: 0;

  font-family: var(--font-family-PT-Sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-medium);
  line-height: 22.5px;
  color: #8591a5;
}

.info__statistic {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__img {
  width: 368px;
  height: 100%;
}

.img {
  width: 100%;
  height: 100%;

  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  object-fit: cover;
}

.info__statistic_date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 203px;
  height: 17px;
}

.info__statistic_date_close {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 140px;
  height: 17px;
}

.info__delimetr {
  width: 1px;
  height: 10px;

  background-color: #e5e6e9;
}

.info__statistic_active {
  margin: 0;
  padding: 0;

  font-family: var(--font-family-PT-Sans);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  color: #8591a5;
}

.info__statistic_like {
  display: flex;
  justify-content: space-between;
  height: 17px;
  margin-left: auto;
}

.favorites__button {
  position: absolute;
  left: 818px;
  top: 9px;
  z-index: 3;
}

.thirdСardStyle .card__img {
  width: 368px;
  height: 100%;
}

.thirdСardStyle .img {
  right: 0;
  left: 0;

  border-radius: 0;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.thirdСardStyle .info {
  position: absolute;
  width: 831px;
  left: 369px;
}

.thirdСardStyle .favorites__button {
  left: 1186px;
}

.thirdСardStyle .info__statistic {
  margin-top: 20px;
}

.thirdСardStyle .info__statistic_date_close {
  width: 139px;
}

.thirdСardStyle .info__statistic_date {
  width: 203px;
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .container {
    width: 100%;
    grid-template-columns: 1fr 206px;
  }

  .card__img {
    width: 206px;
    height: 100%;
  }

  .favorites__button {
    left: 468px;
    top: 10px;
  }

  .thirdСardStyle .img {
    right: 0;
    left: 0;
  }

  .thirdСardStyle .card__img {
    width: 206px;
  }

  .thirdСardStyle .info {
    width: 482px;
    left: 206px;
  }

  .thirdСardStyle .favorites__button {
    left: 674px;
  }

  .thirdСardStyle .info__text {
    max-width: 455px;
  }
}

@media screen and (max-width: 767px) {
  .container {
    grid-template-columns: 1fr;
    flex-direction: column;
    width: 335px;
    height: 369px;
  }

  .info__text_title {
    margin-top: -5px;
  }

  .info {
    margin-top: 22px;
  }

  .card__img {
    width: 335px;
    height: 100%;
    order: -1;
  }

  .img {
    height: 159px;
  }

  .info__text {
    height: 133px;
    margin-bottom: 14px;
  }

  .favorites__button {
    left: 291px;
    top: 0;

    background-color: #fff;
    border-top-right-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  .info__statistic_active {
    display: none;
  }

  .info__delimetr {
    display: none;
  }

  .info__statistic {
    margin-bottom: 4px;
  }

  .thirdСardStyle .card__img {
    width: 335px;
  }

  .thirdСardStyle .img {
    position: relative;
    right: auto;
    left: auto;
  }

  .thirdСardStyle .info__text {
    margin-bottom: 0;
  }

  .thirdСardStyle .info__statistic {
    margin-bottom: 0;
    margin-top: 14px;
  }

  .thirdСardStyle .info {
    position: relative;
    left: auto;
    width: 295px;
  }

  .thirdСardStyle .favorites__button {
    position: absolute;
    top: 0;
    left: 291px;
    z-index: 4;

    background-color: #fff;
  }
}
